package com.castle.fortress.admin.study.course.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.List;

/**
 * 课程章节表 实体类
 *
 * @author castle
 * @since 2023-01-31
 */
@Data
public class StudyCourseChapterDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@JsonProperty("id")
	private Long id;
	@JsonSerialize(using = ToStringSerializer.class)
	@JsonProperty("courseId")
	private Long courseId;
	@JsonProperty("chapterName")
	private String chapterName;
	@JsonProperty("sort")
	private Integer sort;
	@JsonProperty("status")
	private Integer status;
	@JsonSerialize(using = ToStringSerializer.class)
	@JsonProperty("createUser")
	private Long createUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonProperty("createTime")
	private Date createTime;
	@JsonSerialize(using = ToStringSerializer.class)
	@JsonProperty("updateUser")
	private Long updateUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonProperty("updateTime")
	private Date updateTime;
	@JsonProperty("isDeleted")
	private Integer isDeleted;
	@JsonProperty("createUserName")
	private String createUserName;
	@JsonProperty("coursewares")
	private List<StudyCoursewareDto> coursewares;
	//课程状态
	@JsonProperty("courseStatus")
	private Integer courseStatus;
	//是否首页推荐
	@JsonProperty("isRecommend")
	private Integer isRecommend;
}
